﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PowerManage.DbMigrator.Migrations
{
    /// <inheritdoc />
    public partial class 菜单管理增加日志模块 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5823));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5830));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5833));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5835));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5838));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5845));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5847));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5849));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5851));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5854));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5856));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(5858));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6115));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6118));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6120));

            migrationBuilder.InsertData(
                table: "ElePermission",
                columns: new[] { "Id", "ApiMethod", "Code", "Component", "CreationTime", "CreatorId", "Icon", "LastModificationTime", "Name", "ParentId", "PermissionType", "Remark", "Sort", "Status", "Url" },
                values: new object[] { 16L, "", "log.auditlog", "", new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6122), 0L, "bug", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "日志管理", 0L, 0, null, 0, 1, "log" });

            migrationBuilder.UpdateData(
                table: "EleRole",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 589, DateTimeKind.Local).AddTicks(49));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6212));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6217));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6218));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6218));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6219));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6220));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6221));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6221));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6222));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6223));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6223));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6224));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6224));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6225));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6225));

            migrationBuilder.UpdateData(
                table: "EleUser",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "ConcurrencyStamp", "CreationTime", "PasswordHash", "SecurityStamp" },
                values: new object[] { "bc3408b4-6f4d-4918-b9d7-1ee9bbddd64d", new DateTime(2025, 7, 8, 16, 17, 51, 589, DateTimeKind.Local).AddTicks(388), "AQAAAAIAAYagAAAAEOu7xXq5S8Um69Y3tM/aC5wJnwnn5CuPjtx1BRoHUM17F/Cxg38w/4TRd1HcDO+TaA==", "b51170fc-cec9-4a61-8847-5ad8bb6b560d" });

            migrationBuilder.InsertData(
                table: "EleRolePermission",
                columns: new[] { "Id", "CreationTime", "CreatorId", "LastModificationTime", "PermissionId", "RoleId" },
                values: new object[] { 16L, new DateTime(2025, 7, 8, 16, 17, 51, 641, DateTimeKind.Local).AddTicks(6226), 0L, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 16L, 1L });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 16L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 16L);

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3627));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3632));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3634));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3637));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3639));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3653));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3655));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3656));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3658));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3661));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3662));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3664));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3665));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3667));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3669));

            migrationBuilder.UpdateData(
                table: "EleRole",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 340, DateTimeKind.Local).AddTicks(7498));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3788));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3792));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3793));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3793));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3794));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3795));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3796));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3796));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3797));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3798));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3798));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3798));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3799));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3799));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2025, 7, 7, 17, 55, 22, 383, DateTimeKind.Local).AddTicks(3800));

            migrationBuilder.UpdateData(
                table: "EleUser",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "ConcurrencyStamp", "CreationTime", "PasswordHash", "SecurityStamp" },
                values: new object[] { "1c6c2010-1df7-40ec-8a74-f81d8e22a9aa", new DateTime(2025, 7, 7, 17, 55, 22, 340, DateTimeKind.Local).AddTicks(7718), "AQAAAAIAAYagAAAAEFuaRzqVxkwDPc+qnjtF49NYVEHSJRbb6hyMyXiGl48FtSvag5e1OPQmofatgG21dg==", "dd38cee7-21bd-4b80-9f04-ccafa56c2f46" });
        }
    }
}
